########################################################
# Part of MILIM NIRDAFOT project.
# Written by H. Magal, 2014
# See details on the project at the site:
#   https://sites.google.com/site/nirdafotdownloads/home
########################################################

"""
This text file is based on the Unicode standard file U0590.pdf
It defines All Hebrew AlephBet in logical symbols

05D0 HEBREW LETTER ALEF
05D1 HEBREW LETTER BET
05D2 HEBREW LETTER GIMEL
05D3 HEBREW LETTER DALET
05D4 HEBREW LETTER HE
05D5 HEBREW LETTER VAV
05D6 HEBREW LETTER ZAYIN
05D7 HEBREW LETTER HET
05D8 HEBREW LETTER TET
05D9 HEBREW LETTER YOD
05DA HEBREW LETTER FINAL KAF
05DB HEBREW LETTER KAF
05DC HEBREW LETTER LAMED
05DD HEBREW LETTER FINAL MEM
05DE HEBREW LETTER MEM
05DF HEBREW LETTER FINAL NUN
05E0 HEBREW LETTER NUN
05E1 HEBREW LETTER SAMEKH
05E2 HEBREW LETTER AYIN
05E3 HEBREW LETTER FINAL PE
05E4 HEBREW LETTER PE
05E5 HEBREW LETTER FINAL TSADI
05E6 HEBREW LETTER TSADI
05E7 HEBREW LETTER QOF
05E8 HEBREW LETTER RESH
05E9 HEBREW LETTER SHIN
05EA HEBREW LETTER TAV

05B0 HEBREW POINT SHEVA
05B1 HEBREW POINT HATAF SEGOL
05B2 HEBREW POINT HATAF PATAH
05B3 HEBREW POINT HATAF QAMATS
05B4 HEBREW POINT HIRIQ
05B5 HEBREW POINT TSERE
05B6 HEBREW POINT SEGOL
05B7 HEBREW POINT PATAH
05B8 HEBREW POINT QAMATS
05B9 HEBREW POINT HOLAM
05BA HEBREW POINT HOLAM HASER FOR VAV
05BB HEBREW POINT QUBUTS
05BC HEBREW POINT DAGESH OR MAPIQ
05C1 HEBREW POINT SHIN DOT
05C2 HEBREW POINT SIN DOT

05F3 HEBREW PUNCTUATION GERESH
05F4 HEBREW PUNCTUATION GERSHAYIM
"""

ALEF        = unichr(0x5D0)
BET         = unichr(0x5D1)
GIMEL       = unichr(0x5D2)
DALET       = unichr(0x5D3)
HE          = unichr(0x5D4)
VAV         = unichr(0x5D5)
ZAYIN       = unichr(0x5D6)
HET         = unichr(0x5D7)
TET         = unichr(0x5D8)
YOD         = unichr(0x5D9)
FINAL_KAF   = unichr(0x5DA)
KAF         = unichr(0x5DB)
LAMED       = unichr(0x5DC)
FINAL_MEM   = unichr(0x5DD)
MEM         = unichr(0x5DE)
FINAL_NUN   = unichr(0x5DF)
NUN         = unichr(0x5E0)
SAMEKH      = unichr(0x5E1)
AYIN        = unichr(0x5E2)
FINAL_PE    = unichr(0x5E3)
PE          = unichr(0x5E4)
FINAL_TSADI = unichr(0x5E5)
TSADI       = unichr(0x5E6)
QOF         = unichr(0x5E7)
RESH        = unichr(0x5E8)
SHIN        = unichr(0x5E9)
TAV         = unichr(0x5EA)

SHEVA               = unichr(0x5B0)
HATAF_SEGOL         = unichr(0x5B1)
HATAF_PATAH         = unichr(0x5B2)
HATAF_QAMATS        = unichr(0x5B3)
HIRIQ               = unichr(0x5B4)
TSERE               = unichr(0x5B5)
SEGOL               = unichr(0x5B6)
PATAH               = unichr(0x5B7)
QAMATS              = unichr(0x5B8)
HOLAM               = unichr(0x5B9)
HOLAM_HASER_FOR_VAV = unichr(0x5BA)
QUBUTS              = unichr(0x5BB)
DAGESH_OR_MAPIQ     = unichr(0x5BC)
SHIN_DOT            = unichr(0x5C1)
SIN_DOT             = unichr(0x5C2)

PUN_GERESH          = unichr(0x5F3)
PUN_GERSHAYIM       = unichr(0x5F4)


translator = {
    ALEF:'ALEF',                        BET:'BET',                          GIMEL:'GIMEL',
    DALET:'DALET',                      HE:'HE',                            VAV:'VAV',
    ZAYIN:'ZAYIN',                      HET:'HET',                          TET:'TET',
    YOD:'YOD',                          FINAL_KAF:'FINAL_KAF',              KAF:'KAF',
    LAMED:'LAMED',                      FINAL_MEM:'FINAL_MEM',              MEM:'MEM',
    FINAL_NUN:'FINAL_NUN',              NUN:'NUN',                          SAMEKH:'SAMEKH',
    AYIN:'AYIN',                        FINAL_PE:'FINAL_PE',                PE:'PE',
    FINAL_TSADI:'FINAL_TSADI',          TSADI:'TSADI',                      QOF:'QOF',
    RESH:'RESH',                        SHIN:'SHIN',                        TAV:'TAV',
    SHEVA:'SHEVA',                      HATAF_SEGOL:'HATAF_SEGOL',          HATAF_PATAH:'HATAF_PATAH',
    HATAF_QAMATS:'HATAF_QAMATS',        HIRIQ:'HIRIQ',                      TSERE:'TSERE',
    SEGOL:'SEGOL',                      PATAH:'PATAH',                      QAMATS:'QAMATS',
    HOLAM:'HOLAM',                      HOLAM_HASER_FOR_VAV:'HOLAM_HASER_FOR_VAV',
    QUBUTS:'QUBUTS',                    DAGESH_OR_MAPIQ:'DAGESH_OR_MAPIQ',  SHIN_DOT:'SHIN_DOT',
    SIN_DOT:'SIN_DOT',                  PUN_GERESH:'PUN_GERESH',            PUN_GERSHAYIM:'PUN_GERSHAYIM'}
